<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/system/tags" prefix="system"%>
<!-- 内容主体区域 -->
<div class="contentBody">
	<h2 class="h2Title">用户信息
		<a data-url="${ctxPathA }/usercenter/toUpdate" class="shieldDialog" viewtitle="修改用户信息" viewwidth="800">
			<input type="button" class="button" id="userInfo" value="修改信息">
		</a>
		<a data-url="${ctxPathA }/to/a/usercenter/updatePwd" class="shieldDialog" viewtitle="修改密码" viewwidth="500">
			<input type="button" class="button submit" id="updatePassword" value="修改密码">
		</a>
	</h2>
	<table class="tab-show">
		<tr>
			<th style="width:10%"><label>登录名：</label></th>
			<td style="width:40%">${user.loginCode }</td>
			<th class="t_r" style="width:10%"><label for="realName">昵 称：</label></th>
			<td>${user.userName }</td>
		</tr>
		<tr>
			<th ><label for="sex">性别：</label></th>
			<td>${user.sex eq '0'?'女':'男' }
			</td>
			<th ><label for="org">手机号码：</label></th>
			<td>${user.mobile }</td>
		</tr>
		<tr>
			<th ><label for="position">办公电话：</label></th>
			<td>${user.phone } </td>
			<th ><label for="email">电子邮件：</label></th>
			<td>${user.email } </td>
		</tr>
		<tr>
	    	<th>
            	<label>头像：</label>
        	</th>
         	<td colspan="3">
	<c:if test="${not empty user.avatar }">
         		<img src="${user.avatar }" title="头像" width="90" />
	</c:if>
         	</td>
		</tr>
		<tr>
			<th ><label>入职时间：</label></th>
			<td colspan="3"><div class="clearfix"><div class="fl mt10 mr10"><fmt:formatDate pattern="yyyy年M月d日" value="${user.entryDate}"/></div>
<c:if test="${not empty user.entryDate }">
				<div class="lv-huiz entryDate_plugin fl" data-entrydate="${user.entryDate}">
					<img id="userInfo" src="${ctxPath }/images/ruzhiyear/years01.png" alt="入职徽章" title="入职徽章">
					<%-- 工龄1位数 --%>
					<p class="number" style="left:9px; font-size: 16px;">3</p>
					<%-- 工龄2位数 --%>
					<!-- <p class="number" style="left:6px; font-size: 13px;">10</p> -->
					
				</div>
</c:if>
</div>
			</td>
		</tr>
		<tr>
			<th ><label>个性签名：</label></th>
			<td colspan="3">${user.sign}</td>
		</tr>
	</table>
</div>


